Size-Operating profitability portfolios are formed based on the NYSE, NASDAQ and AMEX.

Further improvement: + Change the risk-free rate data to the ones compatible with different frequency requirements.

Data cleaning and Preparation

Information about initial coding setup:

  1. freq sets the data frequency for the following analysis, 12 for monthly data, 4 for quarterly data and 1 for annual data.
  2. start.ym gives the earliest reasonable starting point of the series, which is January 1966, based on the available number of firms in the data set.
  3. After the preliminary data cleaning, port_market is the market portfolio data (including NYSE, NASDAQ and AMEX), ports_all contains different deciles. All the data are stored in the file named as market.names and data.names. I’ve finished creating the measures based on characteristic deciles, so I’ll have a close look at your results shortly. The decile data is attached. As mentioned, these are based on a single characteristic sort, which will hopefully provide new insight into characteristic based predictability. The characteristics are as follows:
  1. RF denotes the risk-free rate, which is the average of the bid and ask.

Notes: Seems that the big-value and small-growth portfolios include less firms comparing the other four characteristic portfolios, around half of them.

Figure 1 - Log Cumulative Index

Log cumulative realised portfolio return components for seven portfolios - the market portfolio and six size and book-to-market equity ratio sorted portfolios. All following figures demonstrate the monthly realised price-earnings ratio growth (gm), earnings growth (ge), dividend-price (dp) and the portfolio return index (r) with the values in January 1966 as zero for all portfolios.

.

Table 1 - Summary statistics of returns components

The correlations between gm and ge might be a bit too high comparing to Ferreira and Santa-Clara (2011). Need to check the code again.

Need to go back to the construction process of Prof Robert Shiller’s CAPE.

‘kable’ for Table Creation

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead
Table 1 - Summary statistics of returns components
monthly data starts from Jan 1967 and ends in Dec 2019.
Panel A: univariate statistics Panel B: Correlations
Mean Median SD Min Max Skew Kurt AR(1) gm ge dp r
Market
gm 0.02 -0.03 3.12 -15.26 13.28 -0.19 4.42 0.92 1.00 -0.51 -0.03 0.07
ge 0.76 1.11 5.34 -22.01 19.34 -0.50 2.44 0.33 -0.51 1.00 -0.03 0.81
dp 0.28 0.27 0.09 0.09 0.50 0.14 -0.70 0.98 -0.03 -0.03 1.00 -0.03
r 0.94 1.25 4.43 -22.48 16.58 -0.51 1.85 0.05 0.07 0.81 -0.03 1.00
B_Q1
gm 0.03 0.10 1.89 -9.98 6.04 -0.50 1.51 0.87 1.00 -0.14 -0.21 0.23
ge 0.75 0.71 4.77 -25.04 25.75 -0.09 2.38 0.10 -0.14 1.00 0.03 0.92
dp 0.17 0.16 0.06 0.05 0.39 0.84 0.52 0.95 -0.21 0.03 1.00 -0.03
r 0.93 1.05 4.78 -22.57 22.24 -0.30 1.58 0.05 0.23 0.92 -0.03 1.00
B_Q2
gm -0.02 -0.13 2.14 -8.64 7.87 0.01 2.55 0.90 1.00 -0.31 -0.27 0.13
ge 0.73 0.83 4.82 -25.47 19.90 -0.34 2.26 0.16 -0.31 1.00 0.04 0.89
dp 0.25 0.22 0.10 0.10 0.63 1.14 0.74 0.96 -0.27 0.04 1.00 -0.06
r 0.95 1.18 4.52 -23.89 15.39 -0.47 2.15 0.04 0.13 0.89 -0.06 1.00
B_Q3
gm 0.05 0.02 3.28 -15.13 14.26 -0.07 1.50 0.76 1.00 -0.55 -0.08 0.07
ge 0.67 1.05 5.42 -22.87 26.32 -0.18 2.24 0.29 -0.55 1.00 -0.04 0.77
dp 0.31 0.28 0.12 0.12 0.79 0.97 0.57 0.98 -0.08 -0.04 1.00 -0.08
r 0.95 1.23 4.37 -21.08 16.42 -0.34 2.02 0.02 0.07 0.77 -0.08 1.00
B_Q4
gm 0.04 -0.21 6.14 -39.21 81.20 3.37 51.96 0.52 1.00 -0.78 -0.03 0.00
ge 0.78 1.22 7.71 -79.21 39.80 -1.45 20.10 0.36 -0.78 1.00 -0.03 0.59
dp 0.36 0.33 0.15 0.12 0.78 0.49 -0.83 0.98 -0.03 -0.03 1.00 -0.04
r 1.02 1.29 4.45 -20.92 21.81 -0.30 2.52 0.05 0.00 0.59 -0.04 1.00
B_Q5
gm 0.13 -0.15 8.77 -44.23 41.31 -0.06 4.24 0.72 1.00 -0.84 -0.06 0.15
ge 0.71 0.84 9.43 -40.69 46.25 -0.10 3.05 0.50 -0.84 1.00 0.07 0.39
dp 0.39 0.36 0.20 0.09 1.80 2.13 10.96 0.91 -0.06 0.07 1.00 0.06
r 1.07 1.45 4.93 -19.67 21.36 -0.28 1.48 0.05 0.15 0.39 0.06 1.00
S_Q1
gm -0.22 0.08 18.85 -189.67 216.91 2.15 59.36 0.30 1.00 -0.93 -0.16 0.11
ge 1.29 1.18 19.46 -214.05 184.87 -1.95 47.97 0.24 -0.93 1.00 0.13 0.27
dp 0.17 0.14 0.12 0.02 1.00 2.77 11.22 0.96 -0.16 0.13 1.00 -0.04
r 0.85 1.15 7.14 -32.62 32.51 -0.32 1.82 0.13 0.11 0.27 -0.04 1.00
S_Q2
gm -0.05 -0.46 13.16 -132.90 128.67 0.17 50.66 0.58 1.00 -0.90 -0.11 0.05
ge 1.23 1.25 14.23 -123.62 140.26 0.21 37.91 0.47 -0.90 1.00 0.07 0.38
dp 0.21 0.19 0.12 0.05 0.69 1.57 3.17 0.95 -0.11 0.07 1.00 -0.04
r 1.17 1.49 5.99 -31.75 27.27 -0.47 2.45 0.13 0.05 0.38 -0.04 1.00
S_Q3
gm -0.02 -0.12 14.25 -152.79 205.26 2.60 99.15 0.45 1.00 -0.93 -0.06 0.04
ge 1.21 1.52 15.07 -201.85 159.41 -1.84 78.87 0.38 -0.93 1.00 0.02 0.32
dp 0.31 0.28 0.14 0.10 0.86 1.10 1.78 0.94 -0.06 0.02 1.00 -0.07
r 1.22 1.55 5.43 -27.06 26.26 -0.47 2.44 0.12 0.04 0.32 -0.07 1.00
S_Q4
gm 0.08 0.07 14.17 -93.81 133.64 1.25 24.82 0.58 1.00 -0.93 -0.03 0.07
ge 1.15 1.12 14.77 -130.50 97.82 -1.12 21.08 0.50 -0.93 1.00 0.01 0.29
dp 0.38 0.36 0.18 0.10 1.19 1.45 2.90 0.95 -0.03 0.01 1.00 -0.04
r 1.29 1.51 5.18 -25.04 25.96 -0.40 2.54 0.12 0.07 0.29 -0.04 1.00
S_Q5
gm -0.40 -0.26 23.50 -248.89 278.65 0.73 69.21 0.33 1.00 -0.97 -0.07 0.04
ge 1.76 1.72 24.03 -278.81 250.37 -0.78 63.12 0.31 -0.97 1.00 0.04 0.21
dp 0.52 0.46 0.33 0.16 2.90 4.39 24.22 1.01 -0.07 0.04 1.00 -0.11
r 1.39 1.75 5.83 -28.41 31.85 -0.35 3.35 0.17 0.04 0.21 -0.11 1.00
Note: Panel A in this table presents mean, median, standard deviation (SD), minimum, maximum, skewness (Skew), kurtosis (kurt) and first-order autocorrelation coefficient of the realised components of stock market returns and six size and book-to-market equity ratio sorted portfolios. These univariate statistics for each portfolios are presented separately. gm is the continuously compounded growth rate in the price-earnings ratio. ge is the continuously compounded growth rate in earnings. dp is the log of one plus the dividend-price ratio. *r* is the portfolio returns. Panel B in this table reports correlation matrices for all seven portfolios. The sample period starts from Feburary 1966 and ends in December 2019.

Figure 3 - Cumulative OOS R-sqaure Difference and Cumulative SSE Difference

The cumulative OOS R-square figures show the out-of-sample cumulative R-square up to each month from predictive regressions with listed predictors and from the sum-of-the-parts (SOP) method for each portfolio. The cumulative SSE difference plots indicates the out-of-sample performance of each model. These are evaluated by the cumulative squared prediction errors of the NULL minus the cumulative squared predictirion error of the ALTERNATIVE. The NULL model is the historical mean model, while the ALTERNATIVE model is either the predictive regression model or the SOP model. An incresae in the line suggests better performance of the ALTERNATIVE model and a decrease suggests that the NULL model is better.

Several points to note in the coding:

  1. The dividend-price ratio (‘DP’ hereafter) is calculated as the log of 1 plus the frequency-adjusted dividend to price ratio, rather than using the annual dividend. As by this return decomposition, the expected amount of dividend payout in each period should be adjusted by the frequency of the data in the analysis. \[ dp_t = \log (1 + \frac{\tilde{D}_t}{P_t}) = \log (1 + \frac{D_t / n}{P_t}) \text{,} \] where \(D_t\) is the annual dividend payment and \(n\) is the data frequency (e.g. \(n = 1\) for annual data and \(n = 12\) for monthly data) and \(\tilde{D}_t\) is the freqency-adjusted dividend payment for period \(t\).

  2. The SOP method by Ferreira and Santa-Clara (2011) decomposes the portfolio return into three components, namely the earnings growth, the prie multiple expansion and the next period dividend-price ratio. Here to generate the SOP prediction, we use the rolling mean of past earnings growth as the expected growth of the next period (denoted as ge1). However, there are other choices, such as recursive means in ge2 and ge3.

  3. critica.value = TRUE is the option whether to use boostrap method to calculate the MSE-F critical values. This is used in function Boot_MSE.F.

  4. The authors should evaluate the significance of the MSE−F statistic by using the theoret- ical distribution derived in McCracken (2007). The bootstrap-based inference (presented in Pages 9-10) can represent a robustness check and moved to an appendix. Further- more, the authors can also include in the main results the related out-of-sample statistic proposed by Clark and West (2007), which follows a standard Normal distribution. Therefore, readjust the Boot_MSE.F function.

  5. Column McCracken in Table 2 (line 604) gives the significance of the out-of-sample \(MSE–F\) statistic of McCracken (2007). \(***\), \(**\), and \(*\) denote significance at the 1%, 5%, and 10% level, respectively. Please refer to the Table 4 on P749 in McCracken (2007) with \(k_2 = 1\) and \(\pi = P/R = \frac{\text{Number of out-of-sample forecasts}}{\text{Number of observations used to form the first forecast}} = 1.6\).

## [1] "market_Allfirms.csv"
## [1] "Market"
## ##------ Mon Aug  8 10:27:10 2022 ------##
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(actual)` instead of `actual` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(cond)` instead of `cond` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(uncond)` instead of `uncond` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(x)` instead of `x` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.
## [1] "OOS R Squared: 0.0047"
## [1] "MSE-F: 1.8524"
## Note: Using an external vector in selections is ambiguous.
## ℹ Use `all_of(predictor)` instead of `predictor` to silence this message.
## ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
## This message is displayed once per session.

## [1] "IS R Squared: 0.0106"
## [1] "OOS R Squared: -0.0104"
## [1] "MSE-F: -4.054"
## [1] "IS R Squared: 0.0045"
## [1] "OOS R Squared: -0.0023"
## [1] "MSE-F: -0.9222"
## [1] "IS R Squared: 0.0051"
## [1] "OOS R Squared: -0.0017"
## [1] "MSE-F: -0.658"
## [1] "IS R Squared: 0.012"
## [1] "OOS R Squared: -0.0086"
## [1] "MSE-F: -3.3515"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.0079"
## [1] "MSE-F: -3.1035"

## [1] "port_B_Q1.csv"
## [1] "B_Q1"
## ##------ Mon Aug  8 10:27:17 2022 ------##
## [1] "OOS R Squared: 0.0039"
## [1] "MSE-F: 1.5414"

## [1] "IS R Squared: 0.0112"
## [1] "OOS R Squared: 1e-04"
## [1] "MSE-F: 0.0365"
## [1] "IS R Squared: 0.0099"
## [1] "OOS R Squared: 0.004"
## [1] "MSE-F: 1.5813"
## [1] "IS R Squared: 0.0109"
## [1] "OOS R Squared: 0.0054"
## [1] "MSE-F: 2.1543"
## [1] "IS R Squared: 0.0126"
## [1] "OOS R Squared: 0.0017"
## [1] "MSE-F: 0.6802"
## [1] "IS R Squared: 3e-04"
## [1] "OOS R Squared: -0.0036"
## [1] "MSE-F: -1.4279"

## [1] "port_B_Q2.csv"
## [1] "B_Q2"
## ##------ Mon Aug  8 10:27:23 2022 ------##
## [1] "OOS R Squared: 7e-04"
## [1] "MSE-F: 0.2906"

## [1] "IS R Squared: 0.0028"
## [1] "OOS R Squared: -0.005"
## [1] "MSE-F: -1.956"
## [1] "IS R Squared: 0.007"
## [1] "OOS R Squared: -0.0026"
## [1] "MSE-F: -1.0122"
## [1] "IS R Squared: 0.0074"
## [1] "OOS R Squared: -0.0015"
## [1] "MSE-F: -0.5721"
## [1] "IS R Squared: 0.0032"
## [1] "OOS R Squared: -0.004"
## [1] "MSE-F: -1.5894"
## [1] "IS R Squared: 0.0012"
## [1] "OOS R Squared: -0.0096"
## [1] "MSE-F: -3.7637"

## [1] "port_B_Q3.csv"
## [1] "B_Q3"
## ##------ Mon Aug  8 10:27:29 2022 ------##
## [1] "OOS R Squared: -0.0027"
## [1] "MSE-F: -1.06"

## [1] "IS R Squared: 0.0011"
## [1] "OOS R Squared: -0.0127"
## [1] "MSE-F: -4.9678"
## [1] "IS R Squared: 0.0039"
## [1] "OOS R Squared: -0.0116"
## [1] "MSE-F: -4.5268"
## [1] "IS R Squared: 0.004"
## [1] "OOS R Squared: -0.0097"
## [1] "MSE-F: -3.8071"
## [1] "IS R Squared: 0.0012"
## [1] "OOS R Squared: -0.0113"
## [1] "MSE-F: -4.3963"
## [1] "IS R Squared: 0.0018"
## [1] "OOS R Squared: -0.0091"
## [1] "MSE-F: -3.5768"

## [1] "port_B_Q4.csv"
## [1] "B_Q4"
## ##------ Mon Aug  8 10:27:34 2022 ------##
## [1] "OOS R Squared: -0.0036"
## [1] "MSE-F: -1.4321"

## [1] "IS R Squared: 0.0034"
## [1] "OOS R Squared: -0.0166"
## [1] "MSE-F: -6.4685"
## [1] "IS R Squared: 0.001"
## [1] "OOS R Squared: -0.002"
## [1] "MSE-F: -0.8071"
## [1] "IS R Squared: 0.0012"
## [1] "OOS R Squared: -0.0017"
## [1] "MSE-F: -0.6841"
## [1] "IS R Squared: 0.004"
## [1] "OOS R Squared: -0.0124"
## [1] "MSE-F: -4.8291"
## [1] "IS R Squared: 8e-04"
## [1] "OOS R Squared: -0.0169"
## [1] "MSE-F: -6.564"

## [1] "port_B_Q5.csv"
## [1] "B_Q5"
## ##------ Mon Aug  8 10:27:40 2022 ------##
## [1] "OOS R Squared: 0.0069"
## [1] "MSE-F: 2.7329"

## [1] "IS R Squared: 0.0179"
## [1] "OOS R Squared: 0.0041"
## [1] "MSE-F: 1.6315"
## [1] "IS R Squared: 2e-04"
## [1] "OOS R Squared: -0.0042"
## [1] "MSE-F: -1.6471"
## [1] "IS R Squared: 4e-04"
## [1] "OOS R Squared: -0.004"
## [1] "MSE-F: -1.5815"
## [1] "IS R Squared: 0.0192"
## [1] "OOS R Squared: 0.0068"
## [1] "MSE-F: 2.6991"
## [1] "IS R Squared: 0.007"
## [1] "OOS R Squared: -0.0022"
## [1] "MSE-F: -0.8818"

## [1] "port_S_Q1.csv"
## [1] "S_Q1"
## ##------ Mon Aug  8 10:27:45 2022 ------##
## [1] "OOS R Squared: -0.0033"
## [1] "MSE-F: -1.3001"

## [1] "IS R Squared: 0.0085"
## [1] "OOS R Squared: -0.0163"
## [1] "MSE-F: -6.348"
## [1] "IS R Squared: 0.004"
## [1] "OOS R Squared: -0.0092"
## [1] "MSE-F: -3.5924"
## [1] "IS R Squared: 0.0053"
## [1] "OOS R Squared: -0.0122"
## [1] "MSE-F: -4.7787"
## [1] "IS R Squared: 0.0112"
## [1] "OOS R Squared: -0.0204"
## [1] "MSE-F: -7.8795"
## [1] "IS R Squared: 0"
## [1] "OOS R Squared: -0.0152"
## [1] "MSE-F: -5.9089"

## [1] "port_S_Q2.csv"
## [1] "S_Q2"
## ##------ Mon Aug  8 10:27:51 2022 ------##
## [1] "OOS R Squared: 0"
## [1] "MSE-F: -0.0104"

## [1] "IS R Squared: 0.007"
## [1] "OOS R Squared: -0.0144"
## [1] "MSE-F: -5.6155"
## [1] "IS R Squared: 0.0035"
## [1] "OOS R Squared: -0.0058"
## [1] "MSE-F: -2.2795"
## [1] "IS R Squared: 0.0046"
## [1] "OOS R Squared: -0.0072"
## [1] "MSE-F: -2.8187"
## [1] "IS R Squared: 0.0096"
## [1] "OOS R Squared: -0.0203"
## [1] "MSE-F: -7.8511"
## [1] "IS R Squared: 1e-04"
## [1] "OOS R Squared: -0.012"
## [1] "MSE-F: -4.6962"

## [1] "port_S_Q3.csv"
## [1] "S_Q3"
## ##------ Mon Aug  8 10:27:57 2022 ------##
## [1] "OOS R Squared: -0.0103"
## [1] "MSE-F: -4.0228"

## [1] "IS R Squared: 0.0029"
## [1] "OOS R Squared: -0.016"
## [1] "MSE-F: -6.2148"
## [1] "IS R Squared: 0.002"
## [1] "OOS R Squared: -0.0048"
## [1] "MSE-F: -1.9034"
## [1] "IS R Squared: 0.0026"
## [1] "OOS R Squared: -0.0046"
## [1] "MSE-F: -1.827"
## [1] "IS R Squared: 0.0046"
## [1] "OOS R Squared: -0.0213"
## [1] "MSE-F: -8.243"
## [1] "IS R Squared: 2e-04"
## [1] "OOS R Squared: -0.0203"
## [1] "MSE-F: -7.8734"

## [1] "port_S_Q4.csv"
## [1] "S_Q4"
## ##------ Mon Aug  8 10:28:03 2022 ------##
## [1] "OOS R Squared: -0.0244"
## [1] "MSE-F: -9.437"

## [1] "IS R Squared: 0.0041"
## [1] "OOS R Squared: -0.0054"
## [1] "MSE-F: -2.1042"
## [1] "IS R Squared: 0.0019"
## [1] "OOS R Squared: -0.008"
## [1] "MSE-F: -3.1412"
## [1] "IS R Squared: 0.0024"
## [1] "OOS R Squared: -0.0086"
## [1] "MSE-F: -3.3726"
## [1] "IS R Squared: 0.0059"
## [1] "OOS R Squared: -0.0084"
## [1] "MSE-F: -3.2818"
## [1] "IS R Squared: 2e-04"
## [1] "OOS R Squared: -0.0076"
## [1] "MSE-F: -2.9982"

## [1] "port_S_Q5.csv"
## [1] "S_Q5"
## ##------ Mon Aug  8 10:28:07 2022 ------##
## [1] "OOS R Squared: -0.054"
## [1] "MSE-F: -20.2873"

## [1] "IS R Squared: 5e-04"
## [1] "OOS R Squared: -0.0225"
## [1] "MSE-F: -8.6777"
## [1] "IS R Squared: 8e-04"
## [1] "OOS R Squared: -0.0066"
## [1] "MSE-F: -2.5805"
## [1] "IS R Squared: 0.0013"
## [1] "OOS R Squared: -0.0066"
## [1] "MSE-F: -2.6074"
## [1] "IS R Squared: 0.0021"
## [1] "OOS R Squared: -0.0285"
## [1] "MSE-F: -10.9459"
## [1] "IS R Squared: 5e-04"
## [1] "OOS R Squared: -0.0033"
## [1] "MSE-F: -1.317"

Table 2 - Forecasts of portfolio returns

This table demonstrates the in-sample and out-of-sample R-squares for the market and six size and book-to-market equity ratio sorted portfolios from predictive regressions and the Sum-of-the-Parts method. IS R-squares are estimated using the whole sample period and the OOS R-squares are calculated compare the forecast error of the model against the historical mean model. The full sample period starts from Feb 1966 to December 2019 and the IS period is set to be 20 years with forecsats beginning in Feb 1986. The MSE-F statistics are calculated to test the hypothesis \(H_0: \text{out-of-sample R-squares} = 0\) vs \(H_1: \text{out-of-sample R-squares} \neq 0\).

Predictors here are all in log terms.

gt(table2.df, rowname_col = "rowname", groupname_col = "portname") %>%
  tab_header(title = "Table 2 - Forecasts of portfolio returns",
             subtitle = paste(freq_name(freq = freq), " data starts from ", first(data_decompose$month), " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_number(columns = 1:4, decimals = 6, suffixing = TRUE)
Table 2 - Forecasts of portfolio returns
monthly data starts from Jan 1967 and ends in Dec 2019.
IS_r.squared OOS_r.squared MAE_A MSE_F McCracken
Market
DP 0.010630 −0.010370 0.032611 −4.054026
PE 0.004546 −0.002340 0.032475 −0.922206
EY 0.005117 −0.001669 0.032494 −0.657989
DY 0.011952 −0.008557 0.032621 −3.351461
Payout 0.000117 −0.007919 0.032081 −3.103538
SOP NA 0.004656 0.032173 1.852440 **
B_Q1
DP 0.011159 0.000092 0.034461 0.036521
PE 0.009946 0.003987 0.034449 1.581303 *
EY 0.010941 0.005424 0.034441 2.154285 **
DY 0.012552 0.001719 0.034437 0.680242
Payout 0.000343 −0.003628 0.034508 −1.427950
SOP NA 0.003877 0.034589 1.541362 *
B_Q2
DP 0.002774 −0.004976 0.031998 −1.955971
PE 0.006978 −0.002569 0.032045 −1.012195
EY 0.007427 −0.001450 0.032043 −0.572094
DY 0.003202 −0.004040 0.032012 −1.589422
Payout 0.001209 −0.009620 0.031707 −3.763670
SOP NA 0.000733 0.031961 0.290557
B_Q3
DP 0.001057 −0.012737 0.032236 −4.967843
PE 0.003944 −0.011593 0.032306 −4.526808
EY 0.004021 −0.009732 0.032267 −3.807086
DY 0.001160 −0.011255 0.032224 −4.396337
Payout 0.001818 −0.009138 0.031833 −3.576767
SOP NA −0.002684 0.031960 −1.059980
B_Q4
DP 0.003404 −0.016649 0.033337 −6.468533
PE 0.000975 −0.002048 0.032471 −0.807123
EY 0.001242 −0.001735 0.032449 −0.684141
DY 0.003973 −0.012377 0.033270 −4.829123
Payout 0.000802 −0.016899 0.032647 −6.564001
SOP NA −0.003630 0.032676 −1.432088
B_Q5
DP 0.017911 0.004113 0.037492 1.631537 **
PE 0.000221 −0.004187 0.036760 −1.647129
EY 0.000368 −0.004020 0.036763 −1.581473
DY 0.019249 0.006787 0.037537 2.699128 **
Payout 0.006954 −0.002237 0.036687 −0.881787
SOP NA 0.006854 0.036714 2.732866 **
S_Q1
DP 0.008488 −0.016333 0.051930 −6.347951
PE 0.004027 −0.009178 0.052250 −3.592358
EY 0.005262 −0.012246 0.052512 −4.778707
DY 0.011209 −0.020354 0.052021 −7.879513
Payout 0.000004 −0.015186 0.051665 −5.908908
SOP NA −0.003294 0.051471 −1.300101
S_Q2
DP 0.006995 −0.014422 0.043583 −5.615531
PE 0.003538 −0.005804 0.043131 −2.279460
EY 0.004605 −0.007187 0.043270 −2.818699
DY 0.009573 −0.020279 0.043761 −7.851124
Payout 0.000062 −0.012032 0.042630 −4.696157
SOP NA −0.000026 0.042662 −0.010358
S_Q3
DP 0.002867 −0.015985 0.038436 −6.214793
PE 0.001976 −0.004842 0.038364 −1.903418
EY 0.002641 −0.004647 0.038424 −1.826953
DY 0.004558 −0.021313 0.038631 −8.242966
Payout 0.000207 −0.020338 0.038372 −7.873415
SOP NA −0.010263 0.038345 −4.022776
S_Q4
DP 0.004120 −0.005356 0.037168 −2.104249
PE 0.001921 −0.008016 0.037455 −3.141244
EY 0.002423 −0.008612 0.037483 −3.372621
DY 0.005937 −0.008378 0.037268 −3.281790
Payout 0.000196 −0.007648 0.037389 −2.998192
SOP NA −0.024413 0.037414 −9.437034
S_Q5
DP 0.000496 −0.022462 0.041281 −8.677712
PE 0.000788 −0.006576 0.040688 −2.580515
EY 0.001260 −0.006645 0.040668 −2.607400
DY 0.002060 −0.028501 0.041480 −10.945910
Payout 0.000458 −0.003345 0.040679 −1.316960
SOP NA −0.053997 0.041301 −20.287310

Figure 4 - Monthly return predictions

Here I only present the monthly predictions of the historical mean model, the SOP method and the predictive regressions based on the dividend-price ratio and the earnings-price ratio.

## [1] "market_Allfirms.csv"
## [1] "Market"
## ##------ Mon Aug  8 10:28:17 2022 ------##

## [1] "port_B_Q1.csv"
## [1] "B_Q1"
## ##------ Mon Aug  8 10:28:22 2022 ------##

## [1] "port_B_Q2.csv"
## [1] "B_Q2"
## ##------ Mon Aug  8 10:28:26 2022 ------##

## [1] "port_B_Q3.csv"
## [1] "B_Q3"
## ##------ Mon Aug  8 10:28:30 2022 ------##

## [1] "port_B_Q4.csv"
## [1] "B_Q4"
## ##------ Mon Aug  8 10:28:35 2022 ------##

## [1] "port_B_Q5.csv"
## [1] "B_Q5"
## ##------ Mon Aug  8 10:28:39 2022 ------##

## [1] "port_S_Q1.csv"
## [1] "S_Q1"
## ##------ Mon Aug  8 10:28:43 2022 ------##

## [1] "port_S_Q2.csv"
## [1] "S_Q2"
## ##------ Mon Aug  8 10:28:48 2022 ------##

## [1] "port_S_Q3.csv"
## [1] "S_Q3"
## ##------ Mon Aug  8 10:28:52 2022 ------##

## [1] "port_S_Q4.csv"
## [1] "S_Q4"
## ##------ Mon Aug  8 10:28:56 2022 ------##

## [1] "port_S_Q5.csv"
## [1] "S_Q5"
## ##------ Mon Aug  8 10:28:59 2022 ------##

Figure 5 - Trading Performance (with no trading restrictions)

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in xy.coords(x = matrix(rep.int(tx, k), ncol = k), y = x, log = log, :
## 387 y values <= 0 omitted from logarithmic plot

## Warning in window.default(x, ...): 'start' value not changed

## Warning in window.default(x, ...): 'start' value not changed

## Warning in xy.coords(x = matrix(rep.int(tx, k), ncol = k), y = x, log = log, :
## 399 y values <= 0 omitted from logarithmic plot

Table 3 - Certaint equivalent gains

Trading Strategies: certaint equivalent gains

This table shows the out-of-sample portfolio choice results at monthly frequencies from predictive regressions and the SOP method. The trading strategy for each portfolio is designed by optimally allocating funds between the risk-free asset and the corresponding risky portfolio. The certainty equivalent return is \(\overline{rp} - \frac{1}{2} \gamma \hat{\sigma}_{rp}^{2}\) with a risk-aversion coefficient \(\gamma = 3\). The annualised certainty equivalent gain (in percentage) is the monthly certainty equivalent gain multiplied by the corresponding frequency (e.g. 12 for monthly data).

dt <- table3.df %>%
  filter(rowname %in% c(ratio_names, "sop_simple")) %>%
  select(CEGs_annualised, rowname, portname)

as.data.frame(matrix(dt$CEGs_annualised, byrow = F, nrow = length(ratio_names) + 1, ncol = length(id.names))) %>%
  `colnames<-`(unique(dt$portname)) %>%
  mutate(Variable = unique(dt$rowname)) %>%
  # round(digits = 4) %>%
  as.tbl() %>%
  select(Variable, unique(dt$portname)) %>%
  gt(rowname_col = "Variable") %>%
  tab_header(title = "Table 3 - Trading Strategies: certainty equivalent gains",
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month) + 20, " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_percent(columns = 2:(length(id.names)+1), decimals = 2)
Table 3 - Trading Strategies: certainty equivalent gains
Monthly data starts from Jan 1987 and ends in Dec 2019.
Market B_Q1 B_Q2 B_Q3 B_Q4 B_Q5 S_Q1 S_Q2 S_Q3 S_Q4 S_Q5
sop_simple 1.10% 0.39% −0.47% −0.13% 2.84% 0.20% 1.34% 1.07% −2.97% −8.81% −39.98%
DP −2.85% −1.56% −2.07% −2.39% −1.42% −1.11% −4.75% −3.26% −18.18% 8.53% 14.23%
PE 0.84% −0.23% −0.63% −1.54% 0.71% 0.48% −0.20% 1.71% −0.12% 3.25% −26.29%
EY 0.98% 0.01% −0.45% −1.14% −0.56% 0.32% −1.93% 1.53% 1.17% 2.65% −29.50%
DY −2.36% −1.55% −1.91% −2.16% −0.29% −1.07% −8.35% −9.68% −24.32% 9.90% 9.71%
Payout −4.13% −0.36% −0.05% −2.42% −34.47% −3.44% −5.69% −5.45% −31.29% 0.58% −17.81%

Table 4 - Sharpe ratio Gains

Trading Strategies: Sharpe ratio Gains

This table presents the Sharpe ratio of the out-of-sample performance of trading strategies, allocating funds between risk-free and risky assets for each portfolio. The annualised Sharpe ratio is generated by multipling the monthly Sharpe ratio by square root of the corresponding frequency (e.g. \(\sqrt{12}\) for monthly data).

dt <- table4.df %>%
  filter(rowname %in% c(ratio_names, "sop_simple")) %>%
  select(SRG_annualised, rowname, portname)

as.data.frame(matrix(dt$SRG_annualised, byrow = F, nrow = length(ratio_names) + 1, ncol = length(id.names))) %>%
  `colnames<-`(unique(dt$portname)) %>%
  mutate(Variable = unique(dt$rowname)) %>%
  # round(digits = 4) %>%
  as.tbl() %>%
  select(Variable, unique(dt$portname)) %>%
  gt(rowname_col = "Variable") %>%
  tab_header(title = "Table 4 - Trading Strategies: Sharpe ratio gains", 
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month) + 20, " and ends in ", last(data_decompose$month), ".", sep = "")) %>%
  fmt_number(columns = 2:(length(id.names)+1), decimals = 4) 
Table 4 - Trading Strategies: Sharpe ratio gains
Monthly data starts from Jan 1987 and ends in Dec 2019.
Market B_Q1 B_Q2 B_Q3 B_Q4 B_Q5 S_Q1 S_Q2 S_Q3 S_Q4 S_Q5
sop_simple 0.0524 0.0471 −0.0232 −0.0095 0.0382 0.0363 0.1421 0.0882 0.0294 0.0440 0.0461
DP −0.1667 −0.1017 −0.1247 −0.1376 −0.2098 −0.0978 0.0171 −0.0384 −0.2874 0.1711 0.2048
PE 0.0674 0.0687 0.0168 −0.0866 −0.0254 −0.0108 0.0554 0.0545 −0.0265 0.0403 −0.1044
EY 0.0827 0.0948 0.0403 −0.0546 −0.0477 −0.0162 0.0481 0.0504 0.0162 0.0429 −0.1006
DY −0.1441 −0.1025 −0.1145 −0.1261 −0.1621 −0.0803 0.0326 −0.0800 −0.3241 0.2220 0.2135
Payout −0.1547 −0.0203 −0.0015 −0.0663 −0.2329 0.0107 −0.2572 −0.1689 −0.3541 −0.0362 −0.0913

Figure 6 - Sensitivity of Certainty Equivalent Gains relative to Risk-Aversion level

This figure presents the out-of-sample portfolio choice results at monthly frequency from bivariate predictive regressions and the SOP method with different levels of risk-aversion. To show that our previous results hold with respect to investors with different levels of risk aversion, we evaluate the changes in certainty equivalent gains with respect to the changes in the level of risk-aversion. The results of the trading strategy reported here are without trading restrictions (as in Table 5), allocating funds between the risk-free asset and the risky equity portfolio. The portfolio choice results are evaluated in the certainty equivalent return with relative risk-aversion coefficient \(\gamma\), with ${\(0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5\)}$. Risky equity portfolios include the market portfolio and six size and book-to-market equity sorted portfolios, BH, BM, BL, SH, SM and SL. The annualised certainty equivalent gain is the monthly certainty equivalent gain multiplied by twelve. The sample period is from February 1966 to December 2019 and the out-of-sample period starts in March 1986.

## [1] "Market"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "B_Q1"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "B_Q2"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "B_Q3"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "B_Q4"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "B_Q5"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "S_Q1"
## ##------ Mon Aug  8 10:29:16 2022 ------##
## [1] "S_Q2"
## ##------ Mon Aug  8 10:29:17 2022 ------##
## [1] "S_Q3"
## ##------ Mon Aug  8 10:29:17 2022 ------##
## [1] "S_Q4"
## ##------ Mon Aug  8 10:29:17 2022 ------##
## [1] "S_Q5"
## ##------ Mon Aug  8 10:29:17 2022 ------##
## Warning: Removed 8 rows containing missing values (geom_point).
## Warning: Removed 8 row(s) containing missing values (geom_path).

Table 5 - MSPE-adjusted Statistic

MSPE-adjusted Statistic

This table presents the MSEP-adjusted Statistics, evaluating the statistical significance of the out-of-sample R-squared statistics of each model in the corresponding portfolio.

See Rapach et al., (2010) and Clark and West (2007) for the detailed procedure.

table5.df <- data.frame()
for (port in names(TABLE5)) {
  pt <- TABLE5[[port]]
  pt$rowname <- rownames(pt)
  pt$portname <- port
  colnames(pt)[4] <- "star"
  table5.df <- rbind.data.frame(table5.df, pt)
}

table5.output <- gt(table5.df, rowname_col = "rowname", groupname_col = "portname") %>%
  fmt_percent(columns = vars(OOS_r.squared, mspe_pvalue), decimals = 2) %>%
  fmt_number(columns = vars(mspe_t), decimals = 4) %>%
  tab_header(title = "Table 5 - MSPE-adjusted Statistic",
             subtitle = paste(str_to_title(freq_name(freq = freq)), " data starts from ", first(data_decompose$month), " and ends in ", last(data_decompose$month), ".", sep = ""))
## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead

## Warning: `columns = vars(...)` has been deprecated in gt 0.3.0:
## * please use `columns = c(...)` instead
table5.output
Table 5 - MSPE-adjusted Statistic
Monthly data starts from Jan 1967 and ends in Dec 2019.
OOS_r.squared mspe_t mspe_pvalue star
Market
DP −1.04% 0.7486 22.73%
PE −0.23% 0.6344 26.31%
EY −0.17% 0.7180 23.66%
DY −0.86% 0.9945 16.03%
Payout −0.79% −1.4743 92.94%
SOP 0.47% 1.2007 11.53%
B_Q1
DP 0.01% 1.0321 15.13%
PE 0.40% 1.1871 11.80%
EY 0.54% 1.3033 9.66% *
DY 0.17% 1.1664 12.21%
Payout −0.36% −0.3905 65.18%
SOP 0.39% 1.3395 9.06% *
B_Q2
DP −0.50% −0.0224 50.89%
PE −0.26% 0.6223 26.71%
EY −0.15% 0.7151 23.75%
DY −0.40% 0.2617 39.68%
Payout −0.96% −0.1921 57.61%
SOP 0.07% 0.5332 29.71%
B_Q3
DP −1.27% −1.0367 84.98%
PE −1.16% 0.0343 48.63%
EY −0.97% 0.1295 44.85%
DY −1.13% −0.9381 82.56%
Payout −0.91% 0.1529 43.93%
SOP −0.27% −0.1509 55.99%
B_Q4
DP −1.66% 0.3637 35.81%
PE −0.20% −0.1532 56.08%
EY −0.17% −0.1599 56.35%
DY −1.24% 0.6026 27.36%
Payout −1.69% −0.7596 77.60%
SOP −0.36% 0.0532 47.88%
B_Q5
DP 0.41% 1.9865 2.38% **
PE −0.42% −1.0562 85.42%
EY −0.40% −0.9112 81.86%
DY 0.68% 2.1155 1.75% **
Payout −0.22% 1.0549 14.61%
SOP 0.69% 1.5086 6.61% *
S_Q1
DP −1.63% 0.7348 23.14%
PE −0.92% 0.5575 28.88%
EY −1.22% 0.8391 20.10%
DY −2.04% 1.0005 15.88%
Payout −1.52% −0.4988 69.09%
SOP −0.33% 0.7435 22.88%
S_Q2
DP −1.44% 1.0028 15.83%
PE −0.58% 0.3044 38.05%
EY −0.72% 0.5707 28.43%
DY −2.03% 1.2815 10.04%
Payout −1.20% 0.0364 48.55%
SOP −0.00% 0.7841 21.67%
S_Q3
DP −1.60% −0.3333 63.05%
PE −0.48% −0.1650 56.55%
EY −0.46% 0.1903 42.46%
DY −2.13% 0.0388 48.45%
Payout −2.03% −1.1032 86.47%
SOP −1.03% 0.0136 49.46%
S_Q4
DP −0.54% 0.6498 25.81%
PE −0.80% 0.0251 49.00%
EY −0.86% 0.2489 40.18%
DY −0.84% 0.9578 16.94%
Payout −0.76% −1.0356 84.95%
SOP −2.44% −0.1359 55.40%
S_Q5
DP −2.25% −0.8441 80.04%
PE −0.66% −0.7841 78.33%
EY −0.66% −0.4822 68.50%
DY −2.85% −0.1890 57.49%
Payout −0.33% −0.7821 78.27%
SOP −5.40% −0.4758 68.27%